package com.youku.component.notification;

import com.youku.util.Assert;

/**
 * 收件人
 * 
 * @author loda
 *
 */
public class Recipient {

	private String email;

	private String cellNumber;

	public Recipient(String email, String cellNumber) {
		Assert.isEmail(email);
		Assert.isPhoneNumber(cellNumber);
		this.email = email;
		this.cellNumber = cellNumber;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCellNumber() {
		return cellNumber;
	}

	public void setCellNumber(String cellNumber) {
		this.cellNumber = cellNumber;
	}

	@Override
	public String toString() {
		return "接收人 [邮箱=" + email + ", 手机号=" + cellNumber + "]";
	}
}
